package com.example.demo.service;


import com.example.demo.entity.BookWithUser;
import com.example.demo.mapper.BookWithUserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class BookWithUserService {

    @Resource
    private BookWithUserMapper bookWithUserMapper;

    public void insert(BookWithUser bookWithUser) {
        bookWithUserMapper.insert(bookWithUser);
    }

    public void update(BookWithUser bookWithUser) {
        bookWithUserMapper.update(bookWithUser);
    }

    public void deleteById(Long deleteRecords) {
        bookWithUserMapper.deleteById(deleteRecords);
    }
}
